<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-menu-button></ion-menu-button>
    </ion-buttons>
    <ion-title>索引</ion-title>
    <ion-buttons slot="end">
      <ion-button color="danger" fill="outline" (click)="min()" title="较慢">重排索引</ion-button>
      <ion-button color="secondary" fill="outline" (click)="reindex()" title="索引新文件、删除文件">刷新索引</ion-button>
      <ion-button color="primary" fill="outline" (click)="addDir()">增加目录</ion-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
  <ion-header collapse="condense">
    <ion-toolbar>
      <ion-title size="large">索引</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-list>
    <ion-item *ngFor="let d of dirs">
      <ion-label>{{ d }}</ion-label>
      <ion-buttons slot="end">
        <ion-button color="danger" fill="outline" (click)="delIndex(d)">删除</ion-button>
      </ion-buttons>
    </ion-item>
  </ion-list>

</ion-content>
